package com.tancire.sources.domain;

import java.math.BigDecimal;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.tancire.common.annotation.Excel;
import com.tancire.common.core.domain.BaseEntity;

/**
 * 资源明细对象 sur_resource_detail
 *
 * @author chenchao
 * @date 2024-08-11
 */
public class SurResourceDetail extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private Long id;

    /**
     * 资源ID
     */
    @Excel(name = "资源ID")
    private Long resourceId;

    /**
     * 文件名称
     */
    @Excel(name = "文件名称")
    private String fileName;

    /**
     * 文件路径
     */
    @Excel(name = "文件路径")
    private String filePath;

    /**
     * 文件类型
     */
    @Excel(name = "文件类型")
    private String fileType;

    /**
     * 文件大小 （字节）
     */
    @Excel(name = "文件大小 ", readConverterExp = "字=节")
    private Long fileSize;

    /**
     * 文件描述
     */
    @Excel(name = "文件描述")
    private String fileDesc;

    /**
     * 会员专享
     */
    @Excel(name = "会员专享 ")
    private Integer memberVip;

    /**
     * 是否收费
     */
    @Excel(name = "是否收费")
    private Long chargeStatus;

    /**
     * 单价
     */
    @Excel(name = "单价")
    private BigDecimal filePrice;

    /**
     * 文件状态 0 正常 1 封禁
     */
    @Excel(name = "文件状态 0 正常 1 封禁")
    private Long fileStatus;

    /**
     * 文件排序
     */
    @Excel(name = "文件排序")
    private Integer fileSort;

    /**
     * 0 正常  1 删除  真删除，字段保留
     */
    private Long delFlag;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setResourceId(Long resourceId) {
        this.resourceId = resourceId;
    }

    public Long getResourceId() {
        return resourceId;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFilePath(String filePath) {
        this.filePath = filePath;
    }

    public String getFilePath() {
        return filePath;
    }

    public void setFileType(String fileType) {
        this.fileType = fileType;
    }

    public String getFileType() {
        return fileType;
    }

    public void setFileSize(Long fileSize) {
        this.fileSize = fileSize;
    }

    public Long getFileSize() {
        return fileSize;
    }

    public void setFileDesc(String fileDesc) {
        this.fileDesc = fileDesc;
    }

    public String getFileDesc() {
        return fileDesc;
    }

    public void setMemberVip(Integer memberVip) {
        this.memberVip = memberVip;
    }

    public Integer getMemberVip() {
        return memberVip;
    }

    public void setChargeStatus(Long chargeStatus) {
        this.chargeStatus = chargeStatus;
    }

    public Long getChargeStatus() {
        return chargeStatus;
    }

    public void setFilePrice(BigDecimal filePrice) {
        this.filePrice = filePrice;
    }

    public BigDecimal getFilePrice() {
        return filePrice;
    }

    public void setFileStatus(Long fileStatus) {
        this.fileStatus = fileStatus;
    }

    public Long getFileStatus() {
        return fileStatus;
    }

    public void setFileSort(Integer fileSort) {
        this.fileSort = fileSort;
    }

    public Integer getFileSort() {
        return fileSort;
    }

    public void setDelFlag(Long delFlag) {
        this.delFlag = delFlag;
    }

    public Long getDelFlag() {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("resourceId", getResourceId())
                .append("fileName", getFileName())
                .append("filePath", getFilePath())
                .append("fileType", getFileType())
                .append("fileSize", getFileSize())
                .append("fileDesc", getFileDesc())
                .append("memberVip", getMemberVip())
                .append("chargeStatus", getChargeStatus())
                .append("filePrice", getFilePrice())
                .append("fileStatus", getFileStatus())
                .append("fileSort", getFileSort())
                .append("createTime", getCreateTime())
                .append("createBy", getCreateBy())
                .append("updateTime", getUpdateTime())
                .append("updateBy", getUpdateBy())
                .append("delFlag", getDelFlag())
                .toString();
    }
}
